//
//  FFPasswordFreePayVM.h
//  LLWallet
//
//  Created by tt on 2020/10/14.
//

#import <WuKongBase/WuKongBase.h>
@class FFPasswordFreePayVM;
NS_ASSUME_NONNULL_BEGIN

@protocol FFPasswordFreePayVMDelegate <NSObject>


@optional

-(void) ff_passwordFreePay:(FFPasswordFreePayVM*)vm item:(NSString*)item on:(BOOL)on;

@end

@interface FFPasswordFreePayVM : WKBaseTableVM

@property(nonatomic,weak) id<FFPasswordFreePayVMDelegate> delegate;

// 免密支付设置
-(AnyPromise*) ff_passwordFreePay:(NSString*)item action:(NSString*)action payToken:(NSString*)payToken;

@end

@interface FFPasswordFreeItem : WKModel

@property(nonatomic,copy) NSString *item; // 项唯一标记
@property(nonatomic,copy) NSString *title; // 项标题
@property(nonatomic,copy) NSString *desc; // 项描述
@property(nonatomic,assign) NSInteger leftNum; // 剩余免密次数
@property(nonatomic,assign) BOOL open; // 用户是否开启
@end

NS_ASSUME_NONNULL_END
